﻿using Mapster;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SBlogCore.Program
{
    public class EntityDtoMap
    {
        public void RegisterMap()
        {
            TypeAdapterConfig.GlobalSettings.Default
                .GetMemberName(member => member.GetCustomAttributes(true).OfType<JsonPropertyAttribute>().FirstOrDefault()?.PropertyName);
        }
    }
}
